home *** CD-ROM | disk | FTP | other *** search
- global gDBPictObjList
-
- on InitButtons EnableScroll
- MyObj = getaProp(gDBPictObjList, GetObjProp())
- ButtonList = GetButtonList(MyObj)
- SpList = GetSpriteList(MyObj)
- cbs = getaProp(SpList, #closeBox)
- mmbs = getaProp(SpList, #MaxMinBox)
- PrintBS = getaProp(SpList, #PrintButton)
- SaveBS = getaProp(SpList, #SaveButton)
- addProp(ButtonList, cbs, new(script("close box"), "close box", "global", cbs, the loc of sprite cbs))
- addProp(ButtonList, PrintBS, new(script("print icon"), "print", "internal", PrintBS, the loc of sprite PrintBS))
- addProp(ButtonList, SaveBS, new(script("save icon"), "save", "internal", SaveBS, the loc of sprite SaveBS))
- repeat with rc in ButtonList
- Inscope(rc)
- end repeat
- SetButtonList(MyObj, ButtonList)
- hand = member("point hand", "internal")
- handMask = member("point hand mask", "internal")
- repeat with rc in [cbs, mmbs, PrintBS, SaveBS]
- set the cursor of sprite rc to [hand, handMask]
- end repeat
- end
-